<form id="edit-form" class="form-horizontal" style="position:relative;background: #fff" role="form"
      data-toggle="validator" method="POST" action="">

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="tabs_0">
                <input TYPE="hidden" id="row" NAME="data" VALUE='{$row|json_encode|htmlentities}'/>
                <input type="hidden" id="id" name="row[id]" value='{$row.id}'/>
            </div>
            <div class="form-group">
                <label for="c-school_id" class="control-label col-xs-12 col-sm-2">学校地址ID :</label>
                <div class="col-xs-12 col-sm-8" id="div-school_id">
                    <select name="row[school_id]" id="c-school_id" class="form-control">
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="c-table_id" class="control-label col-xs-12 col-sm-2">课程ID :</label>
                <div class="col-xs-12 col-sm-8" id="div-table_id">
                    <select name="row[table_id]" id="c-table_id" class="form-control">
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label for="c-classes_id" class="control-label col-xs-12 col-sm-2">班级ID :</label>
                <div class="col-xs-12 col-sm-8" id="div-classes_id">
                    <select name="row[classes_id]" id="c-classes_id" class="form-control">
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label for="c-user_id" class="control-label col-xs-12 col-sm-2">学员ID :</label>
                <div class="col-xs-12 col-sm-8" id="div-user_id">
                    <select name="row[user_id]" id="c-user_id" class="form-control">
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label for="c-amount" class="control-label col-xs-12 col-sm-2">金额 :</label>
                <div class="col-xs-12 col-sm-8" id="div-amount">
                    <input type="number" id="c-amount" name="row[amount]" value="{$row.amount}" class="form-control"
                           title="amount" data-rule="number" step="0.01" placeholder="请输入金额，支持两位小数" data-tip="金额 "/>
                </div>
            </div>

            <div class="form-group">
                <label for="c-payment_status" class="control-label col-xs-12 col-sm-2">支付状态 :</label>
                <div class="col-xs-12 col-sm-8" id="div-payment_status">
                    <select name="row[payment_status]" id="c-payment_status" class="form-control selectpicker"
                            data-rule="">
                        <option value="0" {if $row[
                        "payment_status"]=="0"} selected{/if}>未支付</option>
                        <option value="1" {if $row[
                        "payment_status"]=="1"} selected{/if}>已支付</option>
                    </select>
                </div>
            </div>


            <div class="form-group">
                <label for="c-status" class="control-label col-xs-12 col-sm-2">状态:</label>
                <div class="col-xs-12 col-sm-8" id="div-status">
                    <input id="c-status" name="row[status]" type="hidden" value="<?php echo $row['status']; ?>">
                    <a href="javascript:;" data-toggle="switcher"
                       class="btn-switcher <?php echo ($row['status'] == 1) ? 'active' : 'text-gray'; ?>"
                       data-input-id="c-status" data-yes="1" data-no="0">
                        <i class="fa fa-toggle-on text-success <?php echo ($row['status'] != 1) ? 'fa-flip-horizontal' : ''; ?> fa-2x"></i>
                    </a>
                    <div data-favisible="switch=1" class="p-3">已开户</div>
                    <div data-favisible="switch=0" class="p-3">关闭</div>
                </div>
            </div>

            <div class="form-group layer-footer">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-primary btn-embossed disabled">确定</button>
                    <button type="reset" class="btn btn-default btn-embossed">重置</button>
                </div>
            </div>
        </div>
    </div>
</form>

